﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SyndicateDAO.Classes;

namespace SyndicateDAO.DatabaseObject
{
    public partial class draw : IDataBaseObject
    {
        public class drawstatus
        {
            public const string OPEN = "Open"; // before the draw date and buing coupons, time to set draw details, add lines and players, upload coupons, unlocked for editing
            public const string PENDING = "Pending"; // after draw date and before getting the result, locked
            public const string FINISHED = "Finished"; // after getting the result. locked

        }

        public class drawType
        {
            public const string LOTTO = "Lotto"; 
            public const string EUROMILLIONS = "EuroMillions";
            public const string HEALTHLOTTERY = "HealthLottery"; 
            

        }

        public string DrawStatus
        {
            get
            {
                switch (this.status)
                {
                    case draw.drawstatus.OPEN:
                        return "Open";
                    case draw.drawstatus.PENDING:
                        return "Pending";
                    case draw.drawstatus.FINISHED:
                        return "Finished";
                    default:
                        return this.status;
                }
            }
        }

    }
}
